//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.bean;

import org.come.until.JmSum;

public class TYCPointBean {
	private Integer row;
	private Integer rank;
	private Integer tableId;
	private Integer maxPoint;
	private Integer nowPoint;
	private TYCTypeBean tycTypeBean;

	public TYCPointBean() {
	}

	public Integer getRow() {
		if (this.row == null) {
			this.setRow(0);
		}

		return (int)JmSum.MZ((long)this.row);
	}

	public void setRow(Integer row) {
		this.row = (int)JmSum.ZM((long)row);
	}

	public Integer getRank() {
		if (this.rank == null) {
			this.setRank(0);
		}

		return (int)JmSum.MZ((long)this.rank);
	}

	public void setRank(Integer rank) {
		this.rank = (int)JmSum.ZM((long)rank);
	}

	public Integer getTableId() {
		if (this.tableId == null) {
			this.setTableId(0);
		}

		return (int)JmSum.MZ((long)this.tableId);
	}

	public void setTableId(Integer tableId) {
		this.tableId = (int)JmSum.ZM((long)tableId);
	}

	public Integer getMaxPoint() {
		if (this.maxPoint == null) {
			this.setMaxPoint(0);
		}

		return (int)JmSum.MZ((long)this.maxPoint);
	}

	public void setMaxPoint(Integer maxPoint) {
		this.maxPoint = (int)JmSum.ZM((long)maxPoint);
	}

	public Integer getNowPoint() {
		if (this.nowPoint == null) {
			this.setNowPoint(0);
		}

		return (int)JmSum.MZ((long)this.nowPoint);
	}

	public void setNowPoint(Integer nowPoint) {
		this.nowPoint = (int)JmSum.ZM((long)nowPoint);
	}

	public TYCTypeBean getTycTypeBean() {
		return this.tycTypeBean;
	}

	public void setTycTypeBean(TYCTypeBean tycTypeBean) {
		this.tycTypeBean = tycTypeBean;
	}

	public String setPoint(Integer nowPoint) {
		this.setNowPoint(nowPoint);
		if (this.getNowPoint() > this.getMaxPoint()) {
			nowPoint = this.maxPoint;
			return this.getMaxPoint().toString();
		} else {
			return this.getNowPoint() + "/" + this.getMaxPoint();
		}
	}
}
